<?php

// Add Customized menus for wp-admin
function add_menus()
{
	global $menu;
	global $submenu;

	// position if this menu is after "comments"
 	add_menu_page( '数据', '数据', 'manage_options', 'admin_menu_data', 'test_my_admin_data', '', 30 );
 	add_submenu_page('admin_menu_data', '产品', '产品', 'manage_options', 'admin_menu_products','test_my_admin_data_products');
 	add_submenu_page('admin_menu_data', '新闻', '新闻', 'manage_options', 'admin_menu_news','test_my_admin_data_news');
}
add_action('admin_menu', 'add_menus');

function test_my_admin_data()
{
	test_my_admin_data_products();
}

function test_my_admin_data_products()
{
	include 'list.php';
}

function test_my_admin_data_news()
{
	echo 'test_my_admin_data_news<br>';
}
?>